//
//  WelcomViewController.h
//  BlocksKit
//
//  Created by admin on 2020/4/14.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class WelcomViewController;
@class WelcomItem;

// 点击内容回调
typedef void(^WelcomClickBlock)(WelcomItem* sender);
// 结束回调
typedef void(^WelcomEndBlock)(WelcomViewController* viewController);


@interface WelcomItem : NSObject

@property(strong,nonatomic) NSBundle *resPath;
@property(strong,nonatomic) NSString *resName;
@property(strong,nonatomic) NSURL *resUrl;
@property(assign,nonatomic) NSInteger type; // 0->图片 1->svga动画 2->视频

@end



@interface WelcomViewController : UIViewController

@property(strong, nonatomic) WelcomItem *item;//显示item

@property(strong, nonatomic) UIButton *closeBtn; // 关闭按钮

@property(copy, nonatomic) WelcomClickBlock clickBlock;

@property(copy, nonatomic) WelcomEndBlock endBlock;


@end

NS_ASSUME_NONNULL_END
